package com.aaa.proxy;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/6/14 15:11
 * @description：基于接口的静态代理
 * @modified By：
 * @version: 1.0
 */
public class ProxyStaticExtends extends PhoneServiceImpl {
    LogUtil logUtil = new LogUtil();
    @Override
    public void buyPhone(int num) {
        System.out.println("业务：手机进货"+num+"部");
        logUtil.log("buyPhone");
    }

    @Override
    public void salePhone(int num) {
        System.out.println("业务：手机销售"+num+"部");
        logUtil.log("salePhone");
    }
}
